package com.example.saifly.Model;

import java.util.Date;

public class AdviceMedicine {
    private String patientPhone;
    private String name;
    private Date startTime;
    private Date endTime;
    private Integer times;

    public AdviceMedicine(){}

    public AdviceMedicine(String patientPhone, String name, Date startTime, Date endTime, Integer times) {
        this.patientPhone = patientPhone;
        this.name = name;
        this.startTime = startTime;
        this.endTime = endTime;
        this.times = times;
    }

    //set和get方法不能丢，上传数据时需要调用这些方法，否则得到的数据为空

    public String getPatientPhone() {
        return patientPhone;
    }

    public void setPatientPhone(String patientPhone) {
        this.patientPhone = patientPhone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }
}
